package com.googlecode.sere.connectors

import java.io.OutputStream
import javax.servlet.http.HttpServletResponse
import com.googlecode.sere.http._

class ServletHttpResponse(private val impl: HttpServletResponse) extends HttpResponse {
	
	//lazy val bodyStream = impl.getOutputStream()

  def setEntityContent(content: Array[Byte]) = {
    impl.getOutputStream.write(content)
  }

	def setStatus(code: Int) = impl.setStatus(code)

  def setHeader(name: String, value: String) = impl.setHeader(name, value)
}
